Platform Explorer / Nuxeo Platform 2021.57

Contribution org.nuxeo.ecm.platform.video.convert.commandline--command

This contribution is part of XML component org.nuxeo.ecm.platform.video.convert.commandline inside nuxeo-platform-video-2021.57.3.jar /OSGI-INF/commandline-contrib.xml

Extension Point

Extension point command of component CommandLineExecutorComponent.

Registration Order

9
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <command enabled="true" name="ffmpeg-info">
          <commandLine>ffprobe</commandLine>
          <parameterString> #{inFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-screenshot">
          <commandLine>ffmpeg</commandLine>
          <!-- It's important to put the -ss option before the -i option for
            faster (though less accurate) seek / skip to position in the input file -->
          <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 #{outFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-screenshot-resize">
          <commandLine>ffmpeg</commandLine>
          <!-- It's important to put the -ss option before the -i option for faster
            (though less accurate) seek / skip to position in the input file.
    
            The -frames:v 1 option tell to take only one screenshot. -->
          <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 -vf scale=#{width}:#{height} #{outFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-towebm">
          <commandLine>ffmpeg</commandLine>
          <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-tomp4">
          <commandLine>ffmpeg</commandLine>
          <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec aac -strict -2 -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</parameterString>
          <winParameterString> -i #{inFilePath} -s #{width}x#{height} -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</winParameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-toogg">
          <commandLine>ffmpeg</commandLine>
          <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
          </installationDirective>
        </command>
  • <command enabled="true" name="ffmpeg-toavi">
          <commandLine>ffmpeg</commandLine>
          <parameterString> -i #{inFilePath} -s #{width}x#{height} -q:v 0 -c:v mpeg4 -c:a ac3 #{outFilePath}</parameterString>
          <installationDirective>You need to install ffmpeg.
          </installationDirective>
        </command>

XML Source

<extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">

    <command enabled="true" name="ffmpeg-info">
      <commandLine>ffprobe</commandLine>
      <parameterString> #{inFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-screenshot">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for
        faster (though less accurate) seek / skip to position in the input file -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-screenshot-resize">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for faster
        (though less accurate) seek / skip to position in the input file.

        The -frames:v 1 option tell to take only one screenshot. -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -frames:v 1 -f image2 -vf scale=#{width}:#{height} #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-towebm">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-tomp4">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec aac -strict -2 -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</parameterString>
      <winParameterString> -i #{inFilePath} -s #{width}x#{height} -pix_fmt yuv420p -vcodec libx264 -v 0 #{outFilePath}</winParameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-toogg">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command enabled="true" name="ffmpeg-toavi">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -q:v 0 -c:v mpeg4 -c:a ac3 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg.
      </installationDirective>
    </command>

  </extension>